<%--
  Created by IntelliJ IDEA.
  User: 22531
  Date: 2021/5/30
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>studentInformation</title>
    <link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
    <script type="text/javascript" src="/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>
    <script src="/easyui/locale/easyui-lang-zh_CN.js"></script>

    <script type="text/javascript">
        $(function (){
            $('#dg').datagrid({
                url: '/stu/getStuInfo?id=${sessionScope.stu.id}',
                title:'用户信息',
                columns:[[
                    {field:'sno',title:'学号',width:100,align:'center'},
                    {field:'name',title:'姓名',width:100,align:'center'},
                    {field:'clazzName',title:'班级',width:100,align:'center'},
                    {field:'dept',title:'学院',width:100,align:'center'},
                    {field:'sex',title:'性别',width:60,align:'center'},
                    {field:'address',title:'地址',width:100,align:'center'},
                    {field:'age',title:'年龄',width:60,align:'center'},
                    {field:'phone',title:'电话',width:100,align:'center'},
                    {field:'dormitory',title:'宿舍',width:100,align:'center'},
                    {field:'native_place',title:'籍贯',width:100,align:'center'},
                ]],
                toolbar:[{
                    iconCls: 'icon-reload',
                    text:'刷新',
                    handler: function(){
                        $('#dg').datagrid('reload');
                    }
                }],
            });
        })
    </script>
</head>
<body>
<div class="easyui-panel" data-options="fit:true,border:false">
    <table id="dg" class="easyui-datagrid"></table>
</div>
<div id="stuInfoTb" style="height:auto;width: auto">
    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="myReload()">刷新</a>
</div>

</body>
</html>
